package com.jz.dynadatasorces.rocketMQ.consumer;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;

import org.springframework.stereotype.Component;

@Component
@RocketMQMessageListener(consumerGroup = "springboot_consumer_group",topic = "topic5")
public class Myconsumer implements RocketMQListener<String> {


    @Override
    public void onMessage(String s) {
        System.out.println("收到消息："+s);
    }
}
